package com.bgs.microservices.service.common.openfeign.email.fallback;

import com.bgs.microservices.service.common.openfeign.email.EmailService;
import com.bgs.microservices.service.common.response.CommonResult;
import com.bgs.microservices.service.common.util.constants.CommonConstants;
import org.springframework.stereotype.Component;

/**
 * @ClassName EmailService
 * @Description 熔断异常类
 * @Author 17179
 * @Date 2023/8/2 9:19
 **/
@Component
public class FailBackEmailServiceImpl implements EmailService {
    @Override
    public CommonResult sendEmail(String text, String subject, String to, String from) {
        return CommonResult.error(CommonConstants.OPENFEIGN_ERROR);
    }

    @Override
    public CommonResult sendEmailAndHtml(String context, String subject, String to, String from) {
        return CommonResult.error(CommonConstants.OPENFEIGN_ERROR);
    }

    @Override
    public CommonResult sendEmailAndFile(String text, String subject, String to, String from, String filepath) {
        return CommonResult.error(CommonConstants.OPENFEIGN_ERROR);
    }
}
